package com.mingqijia.gassafety.db.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mingqijia.gassafety.db.entity.annotation.OperateLogFiled;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @Author: duanhongxiang
 * @Date: 2024/4/19 13:03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_consumer_location")
@ApiModel(value="Consumer地址信息对象", description="用户地址信息表")
public class ConsumerLocation extends BaseEntity {
    private static final long serialVersionUID=1L;
    
    @TableId(value = "Id", type = IdType.AUTO)
    private Integer id;
    
    @TableField("consumerId")
    private Integer consumerId;
    
    @TableField("lng")
    private Double lng;
    
    @TableField("lat")
    private Double lat;
    
    @TableField("city")
    private String city;
    
    @TableField("citycode")
    private String citycode;
    
    @TableField("district")
    private String district;
    
    @TableField("adcode")
    private String adcode;
    
    @TableField("towncode")
    private String towncode;
    
    @TableField("township")
    private String township;

    @TableField("device_num")
    private Integer deviceNum;

    @TableField("broken_num")
    private Integer brokenNum;

    @TableField("alert_num")
    private Integer alertNum;

    @TableField("offline_num")
    private Integer offlineNum;
}
